package game;

import static org.lwjgl.opengl.GL11.*;

import org.lwjgl.util.vector.Vector3f;

public class Camera {
	
	private Vector3f pos, rot;

	public Camera() {
		pos = new Vector3f();
		rot = new Vector3f();
	}
	
	public void translate() {
		glRotatef(rot.y, 1, 0, 0);
		glRotatef(rot.x, 0, 1, 0);
		glRotatef(rot.z, 0, 0, 1);
		glTranslatef(-pos.x, -pos.y, -pos.z);
	}
	
	public void setPos(Vector3f pos) {
		this.pos = pos;
	}
	
	public void setRot(Vector3f rot) {
		this.rot = rot;
	}
}
